# __author: iamironman
import xadmin
from .models import Coupon


class CouponModelAdmin(object):
    list_display = ['name', 'coupon_type', 'timer']


xadmin.site.register(Coupon, CouponModelAdmin)

from .models import UserCoupon


class UserCouponModelAdmin(object):
    list_display = ['user', 'coupon', 'start_time', 'is_use']


xadmin.site.register(UserCoupon, UserCouponModelAdmin)
